import request from '@/utils/request'

// 查询其它管养任务完成进度列表
export function listMaintenance(query) {
  return request({ method: 'get', params: query,url: '/standingbook/maintenance/list'})
}

// 查询其它管养任务完成进度详细
export function getMaintenance(id) {
  return request({ url: '/standingbook/maintenance/' + id, method: 'get'  })
}

// 新增其它管养任务完成进度
export function addMaintenance(data) {
  return request({url: '/standingbook/maintenance',method: 'post',data: data})
}

// 修改其它管养任务完成进度
export function updateMaintenance(data) {
  return request({method: 'put',data: data,url: '/standingbook/maintenance' })
}

// 删除其它管养任务完成进度
export function delMaintenance(id) {
  return request({  method: 'delete', url: '/standingbook/maintenance/' + id  })
}
